<div xmlns="http://www.w3.org/1999/xhtml"
     xmlns:ui="http://java.sun.com/jsf/facelets"
     xmlns:f="http://java.sun.com/jsf/core"
     xmlns:h="http://java.sun.com/jsf/html"
     xmlns:fn="http://java.sun.com/jsp/jstl/functions">

    <h:form>
        <!--<ui:insert name="page-sub-menu"/>-->
        <div>Настройки страница СОДЕРЖИМОЕ (новый шаблон)</div>
        <div>Содержимое кеша:</div>
        <table border="1px">
            <thead>
            <tr>
                <th>
                    <input type="checkbox" id="allCachesElement" onclick="selectCacheCheckboxes()"/>
                </th>
                <th>Кеш</th>
                <th>Количество записей</th>
            </tr>
            </thead>
            <ui:repeat value="#{systemCacheBean.allCacheCount.entrySet().toArray()}" var="cacheEntry"
                       varStatus="cacheindex">
                <tr class="#{cacheindex.even ? 'even' : 'odd'}">
                    <td class="td_data_first">
                        <h:selectBooleanCheckbox id="cacheCheckboxId"
                                                 value="#{systemCacheBean.selectedCacheNames[cacheEntry.key]}"/>
                    </td>
                    <td class="td_data">#{cacheEntry.key}</td>
                    <td class="td_data">#{cacheEntry.value}</td>
                </tr>
            </ui:repeat>
        </table>
        <div>
            <h:commandButton value="#{msgs['clear_selected']}" action="#{systemCacheBean.clearSomeCaches}"/>
        </div>
    </h:form>
</div>